using System;

namespace Comteck.Winforms.Controls.Loading {
  /// <summary>
  /// 提示框命令
  /// </summary>
  public interface IAjaxLoadCommand {
    /// <summary>
    /// 是否处于工作状态
    /// </summary>
    bool IsWork { get; }

    /// <summary>
    /// 显示
    /// </summary>
    /// <param name="isPrevent">是否阻止，如果是，则不允许多次点击</param>
    IDisposable ShowAjax(bool isPrevent = true);

    /// <summary>
    /// 隐藏
    /// </summary>
    void HideAjax();
  }
}
